import { theme, lightTheme } from './converted'

export async function loadTheme (editor) {
  const themeNameDark = 'vs-code-theme-converted-dark'
  editor.defineTheme(themeNameDark, theme)
  const themeNameLight = 'vs-code-theme-converted-light'
  editor.defineTheme(themeNameLight, lightTheme)
  return { dark: themeNameDark, light: themeNameLight }
}
